package edu.yzu.testspringboot002.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 登录日志
 * </p>
 *
 * @author yulang
 * @since 2023-08-18
 */
@Getter
@Setter
@ApiModel(value = "LogLogin对象", description = "登录日志")
public class LogLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户操作   0：用户登录   1：用户退出")
    private Integer operation;

    @ApiModelProperty("状态  0：失败    1：成功    2：账号已锁定")
    private Integer status;

    @ApiModelProperty("用户代理")
    private String userAgent;

    @ApiModelProperty("操作IP")
    private String ip;

    @ApiModelProperty("操作IP")
    private String loginArea;

    @ApiModelProperty("用户名")
    private String creatorName;

    @ApiModelProperty("创建者")
    private Long creator;

    @ApiModelProperty("创建时间")
    private Date createDate;


}
